const mongoose = require('mongoose')
const Tag = require('./Tag')
const schema = new mongoose.Schema({
    title: { type: String },
    url: { type: String },
    coverImg: { type: String },
    tags: [{ type: mongoose.SchemaTypes.ObjectId, ref: 'Tag' }]
}, { timestamps: true }
)

module.exports = mongoose.model('Demo', schema);